package com.log4j.aop.demo.controller;

import org.aspectj.lang.annotation.Before;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HelloController
 * @description: TODO
 * @author: 朱同学
 * @Date 2021/4/15 22:24
 **/
@RestController
public class HelloController {


    @Before("webLog()")
    @GetMapping("hello")
    public String hello(){

        return "hello world！";
    }
}
